package cn.tedu.rtc.websocket.service;

import cn.tedu.rtc.websocket.config.ConcurrentWebSocketSession;

import java.util.Collection;

public interface IWebSocketManageService {

    void put(String key, ConcurrentWebSocketSession val);

    void remove(String key, String sessionId);

    Collection<ConcurrentWebSocketSession> getValueWithWorkspace(String workspaceId);

    Collection<ConcurrentWebSocketSession> getValueWithWorkspaceAndUserType(String workspaceId, Integer userType);

    Long getConnectedCount();

}
